/*
* berton
*/
package com.pitop.t.entity;

/**
*  的实体类的状态
*
* @author berton
*/
public enum UserRoleState implements java.io.Serializable {
   //枚举定义在此
    ;

    UserRoleState() {

    }

    /**
    * 根据状态名称查询状态
    *
    * @param stateName
    * @return
    */
    public static UserRoleState getEnum(String stateName) {
        for (UserRoleState tuserRoleState : UserRoleState.values()) {
            if (tuserRoleState.name().equalsIgnoreCase(stateName)) {
                return tuserRoleState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
         return this.name();
    }

}
